package com.todaynews.api;

import com.todaynews.model.reponse.ResultResponse;
import com.todaynews.model.model.VideoModel;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Url;

/**
 * @description: 网络请求的service
 */

public interface ApiService {


    /**
     * 获取视频页的html代码
     */
    @GET
    Observable<String> getVideoHtml(@Url String url);

    /**
     * 获取视频数据json
     * @param url
     * @return
     */
    @GET
    Observable<ResultResponse<VideoModel>> getVideoData(@Url String url);

}

